
import { CloseCircleOutlined } from "@ant-design/icons";
import { Result } from "antd";
import { useElement } from "tools/hooks/useElement";

export default function Error404() {
    const { element } = useElement();
    if (!element) {
        return (
            <Result
                icon={<CloseCircleOutlined />}
                title="未选择对象"
            />
        )
    } else {
        return <></>
    }
}